using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Data
{
    public class ContextFactory
    {
        protected static QuanLyKhachSanEntities context = null;
        private ContextFactory()
       {
        }
        public static QuanLyKhachSanEntities GetInstance()
        {
            if(context == null)
            {
                context = new QuanLyKhachSanEntities();
            }
            return context;
        }
    }
}
